import request from '@/utils/request'

// 获取主机信息
export function getHostInfo() {
  return request({
    url: '/api/hosts/list',
    method: 'get'
  })
}

// 添加主机信息
export function addHostInfo(data) {
  return request({
    url: '/api/hosts/add',
    method: 'post',
    data
  })
}

// 删除主机信息
export function deleteHostInfo(id) {
  return request({
    url: '/api/hosts/delete',
    method: 'delete',
    data: { id }
  })
}

